import Layout                  from "@/layout/index.vue"
import { createNameComponent } from "../createNode"

const route = [
    {
        path     : "/structure",
        component: Layout,
        redirect : "/structure/manager",
        meta     : { title: "结构分析", icon: "sfont system-page" },
        children : [
            {
                path     : "proportion",
                component: createNameComponent(() => import("@/views/main/structure/proportion/Proportion.vue")),
                meta     : { title: "占比分析", icon: "sfont system-page" },
            },
            {
                path     : "pareto",
                component: createNameComponent(() => import("@/views/main/structure/pareto/Pareto.vue")),
                meta     : { title: "帕累托分析", icon: "sfont system-page" },
            },
            {
                path     : "compositionRatio",
                component: createNameComponent(() => import("@/views/main/structure/compositionRatio/CompositionRatio.vue")),
                meta     : { title: "构成比分析", icon: "sfont system-page" },
            },
            {
                path     : "structureChange",
                component: createNameComponent(() => import("@/views/main/structure/structureChange/StructureChange.vue")),
                meta     : { title: "结构变化指数分析", icon: "sfont system-page" },
            },
            {
                path     : "contribution",
                component: createNameComponent(() => import("@/views/main/structure/contribution/Contribution.vue")),
                meta     : { title: "贡献度分析", icon: "sfont system-page" },
            },
        ],
    },
]

export default route
